#include <bits/stdc++.h>

#define ll long long
#define YES cout << "Yes" << endl
#define NO cout << "No" << endl
const int INF = 1e9;
using namespace std;
/*思考区

*/
void solve()
{
    int a, b, c;
    cin >> a>>b>>c;
    if ((a + b + c) % 3 == 0 && (a+c)/2>=b) {
        YES;
    }
    else {
        NO;
    }
}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    int t = 0;
    cin >> t;
    while (t--)
        solve();
    return 0;
}